package com.linsir.lin.controller.rbac;

import com.linsir.lin.dto.GridDTO;
import com.linsir.lin.pojo.Permission;
import com.linsir.lin.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：linsir
 * @date ：Created in 2021/7/8 11:08
 * @description：权限引子
 * @modified By：
 * @version: 1.0.0
 */
@RestController
@RequestMapping(value = "/permission/")
public class PermissionController {

    @Autowired
    private PermissionService permissionService;

    @RequestMapping(value = "grid",method = {RequestMethod.GET,RequestMethod.POST})
    public GridDTO<Permission> grid()
    {
        return permissionService.grid();
    }
}
